<?php

class func {

  public static function ucName($str) {
    
    $words = preg_replace('/[^a-zA-Z0-9]/', ' ', $str);
    $ucWords = ucwords($words);
    $ucName = str_replace(' ','', $ucWords);
    return $ucName;
  }
 
  
}
